<?php

/**
 * LinkTeacherProgram form.
 *
 * @package    sf_sandbox
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class LinkTeacherProgramForm extends BaseLinkTeacherProgramForm
{
  public function configure()
  {
      unset($this['created_at']);
  		//sfApplicationConfiguration::getActive()->loadHelpers('asset');
      	$this->widgetSchema['program_id'] = new sfWidgetFormDoctrineChoice(array('model' => 'Program'));
      	//$this->widgetSchema['teacher_id'] = new sfWidgetFormDoctrineChoice(array('multiple' => true,'model' => 'Teacher','renderer_class'=>'sfWidgetFormSelectDoubleList'));
      	//$this->widgetSchema['teacher_id'] = new sfWidgetFormDoctrineChoice(array('multiple' => true,'model' => 'Teacher','method' => 'getFullName'));
      	$this->widgetSchema['teacher_id'] = new sfWidgetFormInputText();
      	
      	$this->validatorSchema['program_id'] = new sfValidatorDoctrineChoice(array('model'=>'Program','column'=>'id'));
      	$this->validatorSchema['teacher_id'] = new sfValidatorDoctrineChoice(array('model'=>'Teacher','column'=>'intg_identity'));
        
        $this->widgetSchema['assign_status'] = new sfWidgetFormSelect(array('choices'=>LinkTeacherProgramTable::$assign_status_arr));
    }
}
